import java.util.StringTokenizer;


public class BiteBear {
       
	   public void letMebiteYou(){
	          System.out.println("PCP: Bear could you let me bite");      
	   }
	   
	   public void iWantbeBiten(){
		   	  System.out.println("PCP: Yes, I would love to");
	   }
	   
	   public void biteMe(){
		   	  System.out.println("Bear: PCP please come to bite me ASAP, my bottom is ichy");
	   }
	   
	   public void biteYou(){
		      System.out.println("PCP: That's great");
	   }
	   
	   public void bite(){
		     System.out.println("Bear: I would do whatever you asked if you could help me");
	   }
	   
	   
	   public void MaxMin(double[] arr){
		   if (arr.length == 0){
			   return;
		   }
		   
		   double max = arr[0];
		   double min = arr[0];
		   
		   if(arr.length == 1){
			   System.out.println("Max is" + max + "  Min is" + min);
			   return;
		   }
		   
		   
		   
		   for(int i = 1; i < arr.length; i++){
			   if(arr[i] < min){
				   min = arr[i];
			   }
			   if(arr[i] > max){
				   max = arr[i];
			   }
		   }
		   		System.out.println("Max is" + max + "  Min is" + min);
	   }
	   
	   public void devide(){
		     for (int i = 0; i < 1001; i++){
		    	 		if(i % 7 == 0){
		    	 			System.out.println(i + "can be devided by 7");
		    	 		} 		    	 		 		
		    	 		
		    	 		
		    	 		
		    	 		if(i % 5 == 0){
	    	 			 	System.out.println(i + "can be devided by 5");
	    	 		    }
		    	 		
		    	 		
		    	 		
		    	 		if(i % 35 == 0){
	    	 				System.out.println(i + "can be devided by both" );
	    	 		    }
		    	 		
		    	 			
		    	 			
		     }
		     
		     
	   }
	   
	   public void factor(){
		   int result = 1;
		   for(int i = 10; i > 0; i--){
			   result = result * i;
		   }
		   System.out.println(result);
	   }
	   
	   public int factor(int n){
		   if(n == 0 || n == 1){
			   return 1;
		   }
		   
		 
		   
		   return n * factor(n-1);
	   }
	   
	   
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
//		StringTokenizer st = new StringTokenizer(str);
		double[] test = {5,3,8,7};
		BiteBear biteBear101 = new BiteBear(); 
		
		biteBear101.MaxMin(test);
		biteBear101.letMebiteYou();	
		biteBear101.iWantbeBiten();
		biteBear101.biteMe();
		biteBear101.iWantbeBiten();
			
		BiteBear biteBear102 = new BiteBear();
		biteBear102.biteMe();
		biteBear102.bite();
		biteBear101.biteYou();
		
		biteBear101.devide();
		biteBear101.factor();
		System.out.println(biteBear101.factor(5));
	}

}
